package io.hilo.example.component;

import org.hilo.boot.core.spring.RunAfterStart;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 示例
 * 
 * <p>Spring框架启动完会立即执行 RunAfterStart 和 AsyncRunAfterStart
 * @see io.hilo.example.app.lifecycle.AppStartedListener
 */
@Component
public class CheckStateDemo implements RunAfterStart {

    @Override
    public void doInit(Object[] args) {
        Logger logger = LoggerFactory.getLogger(getClass());
        logger.info("start to query Schedule Job List for check...");
        
        // ... do something 
        
        logger.info("check Schedule Job List done.");
    }

}
